# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'UserStatistics.ui'
#
# Created: Mon Feb 14 17:29:23 2011
#      by: PyQt4 UI code generator 4.8.1
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_UserStatistics(object):
    def setupUi(self, UserStatistics):
        UserStatistics.setObjectName(_fromUtf8("UserStatistics"))
        UserStatistics.setWindowModality(QtCore.Qt.WindowModal)
        UserStatistics.resize(800, 635)
        UserStatistics.setMinimumSize(QtCore.QSize(800, 635))
        self.gridLayout = QtGui.QGridLayout(UserStatistics)
        self.gridLayout.setMargin(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(UserStatistics)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.usersTable = QtGui.QTableWidget(self.tab)
        self.usersTable.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.usersTable.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.usersTable.setObjectName(_fromUtf8("usersTable"))
        self.usersTable.setColumnCount(4)
        self.usersTable.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.usersTable.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.usersTable.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.usersTable.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.usersTable.setHorizontalHeaderItem(3, item)
        self.gridLayout_2.addWidget(self.usersTable, 0, 0, 5, 1)
        self.deleteUserBtn = QtGui.QPushButton(self.tab)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/icons/Burn dustbin.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.deleteUserBtn.setIcon(icon)
        self.deleteUserBtn.setAutoDefault(False)
        self.deleteUserBtn.setObjectName(_fromUtf8("deleteUserBtn"))
        self.gridLayout_2.addWidget(self.deleteUserBtn, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 3, 1, 1, 1)
        self.closeBtn = QtGui.QPushButton(self.tab)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/icons/Undo.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.closeBtn.setIcon(icon1)
        self.closeBtn.setAutoDefault(False)
        self.closeBtn.setObjectName(_fromUtf8("closeBtn"))
        self.gridLayout_2.addWidget(self.closeBtn, 4, 1, 1, 1)
        self.deleteByDateBtn = QtGui.QPushButton(self.tab)
        self.deleteByDateBtn.setAutoDefault(False)
        self.deleteByDateBtn.setObjectName(_fromUtf8("deleteByDateBtn"))
        self.gridLayout_2.addWidget(self.deleteByDateBtn, 2, 1, 1, 1)
        self.showResultsBtn = QtGui.QPushButton(self.tab)
        self.showResultsBtn.setMinimumSize(QtCore.QSize(90, 0))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/icons/Preview.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.showResultsBtn.setIcon(icon2)
        self.showResultsBtn.setAutoDefault(False)
        self.showResultsBtn.setObjectName(_fromUtf8("showResultsBtn"))
        self.gridLayout_2.addWidget(self.showResultsBtn, 0, 1, 1, 1)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.usersList = QtGui.QComboBox(self.tab_2)
        self.usersList.setMinimumSize(QtCore.QSize(200, 0))
        self.usersList.setObjectName(_fromUtf8("usersList"))
        self.gridLayout_3.addWidget(self.usersList, 0, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(433, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem1, 0, 2, 1, 1)
        self.resultsTable = QtGui.QTableWidget(self.tab_2)
        self.resultsTable.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.resultsTable.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.resultsTable.setObjectName(_fromUtf8("resultsTable"))
        self.resultsTable.setColumnCount(5)
        self.resultsTable.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.resultsTable.setHorizontalHeaderItem(4, item)
        self.gridLayout_3.addWidget(self.resultsTable, 1, 0, 6, 3)
        self.closeBtn2 = QtGui.QPushButton(self.tab_2)
        self.closeBtn2.setIcon(icon1)
        self.closeBtn2.setAutoDefault(False)
        self.closeBtn2.setObjectName(_fromUtf8("closeBtn2"))
        self.gridLayout_3.addWidget(self.closeBtn2, 6, 3, 1, 1)
        self.label = QtGui.QLabel(self.tab_2)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem2, 4, 3, 2, 1)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.showTestBtn = QtGui.QPushButton(self.tab_2)
        self.showTestBtn.setMinimumSize(QtCore.QSize(90, 0))
        self.showTestBtn.setIcon(icon2)
        self.showTestBtn.setAutoDefault(False)
        self.showTestBtn.setDefault(False)
        self.showTestBtn.setObjectName(_fromUtf8("showTestBtn"))
        self.verticalLayout.addWidget(self.showTestBtn)
        self.deleteTestBtn = QtGui.QPushButton(self.tab_2)
        self.deleteTestBtn.setIcon(icon)
        self.deleteTestBtn.setAutoDefault(False)
        self.deleteTestBtn.setObjectName(_fromUtf8("deleteTestBtn"))
        self.verticalLayout.addWidget(self.deleteTestBtn)
        self.deleteTestsByDate = QtGui.QPushButton(self.tab_2)
        self.deleteTestsByDate.setAutoDefault(False)
        self.deleteTestsByDate.setObjectName(_fromUtf8("deleteTestsByDate"))
        self.verticalLayout.addWidget(self.deleteTestsByDate)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.gridLayout_3.addLayout(self.verticalLayout, 0, 3, 4, 1)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_3)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.label_2 = QtGui.QLabel(self.tab_3)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_4.addWidget(self.label_2, 0, 0, 1, 1)
        self.usersList2 = QtGui.QComboBox(self.tab_3)
        self.usersList2.setMinimumSize(QtCore.QSize(200, 0))
        self.usersList2.setObjectName(_fromUtf8("usersList2"))
        self.gridLayout_4.addWidget(self.usersList2, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.tab_3)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_4.addWidget(self.label_3, 0, 2, 1, 1)
        self.testNumber = QtGui.QComboBox(self.tab_3)
        self.testNumber.setMinimumSize(QtCore.QSize(100, 0))
        self.testNumber.setObjectName(_fromUtf8("testNumber"))
        self.gridLayout_4.addWidget(self.testNumber, 0, 3, 1, 1)
        spacerItem4 = QtGui.QSpacerItem(299, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem4, 0, 4, 1, 1)
        self.testTable = QtGui.QTableWidget(self.tab_3)
        self.testTable.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.testTable.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.testTable.setObjectName(_fromUtf8("testTable"))
        self.testTable.setColumnCount(2)
        self.testTable.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.testTable.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.testTable.setHorizontalHeaderItem(1, item)
        self.gridLayout_4.addWidget(self.testTable, 1, 0, 2, 5)
        spacerItem5 = QtGui.QSpacerItem(87, 554, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem5, 0, 5, 2, 1)
        self.closeBtn3 = QtGui.QPushButton(self.tab_3)
        self.closeBtn3.setMinimumSize(QtCore.QSize(90, 0))
        self.closeBtn3.setIcon(icon1)
        self.closeBtn3.setAutoDefault(False)
        self.closeBtn3.setObjectName(_fromUtf8("closeBtn3"))
        self.gridLayout_4.addWidget(self.closeBtn3, 2, 5, 1, 1)
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 2)

        self.retranslateUi(UserStatistics)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.closeBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.accept)
        QtCore.QObject.connect(self.deleteUserBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.onDeleteUserClicked)
        QtCore.QObject.connect(self.deleteByDateBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.onDeleteUserByDateClicked)
        QtCore.QObject.connect(self.usersTable, QtCore.SIGNAL(_fromUtf8("cellDoubleClicked(int,int)")), UserStatistics.onShowResultsClicked)
        QtCore.QObject.connect(self.showResultsBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.onShowResultsClicked)
        QtCore.QObject.connect(self.closeBtn2, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.accept)
        QtCore.QObject.connect(self.resultsTable, QtCore.SIGNAL(_fromUtf8("cellDoubleClicked(int,int)")), UserStatistics.onShowTestClicked)
        QtCore.QObject.connect(self.showTestBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.onShowTestClicked)
        QtCore.QObject.connect(self.deleteTestBtn, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.onDeleteTestClicked)
        QtCore.QObject.connect(self.deleteTestsByDate, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.onDeleteTestByDateClicked)
        QtCore.QObject.connect(self.usersList, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), UserStatistics.onCurrentUserChanged)
        QtCore.QObject.connect(self.closeBtn3, QtCore.SIGNAL(_fromUtf8("clicked()")), UserStatistics.accept)
        QtCore.QObject.connect(self.usersList2, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), UserStatistics.onCurrentUser2Changed)
        QtCore.QObject.connect(self.usersList, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), self.usersList2.setCurrentIndex)
        QtCore.QObject.connect(self.usersList2, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), self.usersList.setCurrentIndex)
        QtCore.QObject.connect(self.testNumber, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), UserStatistics.onCurrentTestNumberChanged)
        QtCore.QMetaObject.connectSlotsByName(UserStatistics)

    def retranslateUi(self, UserStatistics):
        UserStatistics.setWindowTitle(QtGui.QApplication.translate("UserStatistics", "User results", None, QtGui.QApplication.UnicodeUTF8))
        self.usersTable.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("UserStatistics", "User", None, QtGui.QApplication.UnicodeUTF8))
        self.usersTable.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("UserStatistics", "Last time", None, QtGui.QApplication.UnicodeUTF8))
        self.usersTable.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("UserStatistics", "Last success", None, QtGui.QApplication.UnicodeUTF8))
        self.usersTable.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("UserStatistics", "Last date", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteUserBtn.setText(QtGui.QApplication.translate("UserStatistics", "&Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.closeBtn.setText(QtGui.QApplication.translate("UserStatistics", "&Close", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteByDateBtn.setText(QtGui.QApplication.translate("UserStatistics", "Delete by &date", None, QtGui.QApplication.UnicodeUTF8))
        self.showResultsBtn.setText(QtGui.QApplication.translate("UserStatistics", "&Show results", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("UserStatistics", "Users", None, QtGui.QApplication.UnicodeUTF8))
        self.resultsTable.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("UserStatistics", "Average time", None, QtGui.QApplication.UnicodeUTF8))
        self.resultsTable.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("UserStatistics", "Successful", None, QtGui.QApplication.UnicodeUTF8))
        self.resultsTable.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("UserStatistics", "Tests count", None, QtGui.QApplication.UnicodeUTF8))
        self.resultsTable.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("UserStatistics", "Preset", None, QtGui.QApplication.UnicodeUTF8))
        self.resultsTable.horizontalHeaderItem(4).setText(QtGui.QApplication.translate("UserStatistics", "Date", None, QtGui.QApplication.UnicodeUTF8))
        self.closeBtn2.setText(QtGui.QApplication.translate("UserStatistics", "&Close", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("UserStatistics", "User:", None, QtGui.QApplication.UnicodeUTF8))
        self.showTestBtn.setText(QtGui.QApplication.translate("UserStatistics", "&Show test", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteTestBtn.setText(QtGui.QApplication.translate("UserStatistics", "&Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteTestsByDate.setText(QtGui.QApplication.translate("UserStatistics", "Delete &by date", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("UserStatistics", "Results", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("UserStatistics", "User:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("UserStatistics", "Test:", None, QtGui.QApplication.UnicodeUTF8))
        self.testTable.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("UserStatistics", "Result", None, QtGui.QApplication.UnicodeUTF8))
        self.testTable.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("UserStatistics", "Time", None, QtGui.QApplication.UnicodeUTF8))
        self.closeBtn3.setText(QtGui.QApplication.translate("UserStatistics", "&Close", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QtGui.QApplication.translate("UserStatistics", "Tests", None, QtGui.QApplication.UnicodeUTF8))

from . import resource_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    UserStatistics = QtGui.QDialog()
    ui = Ui_UserStatistics()
    ui.setupUi(UserStatistics)
    UserStatistics.show()
    sys.exit(app.exec_())

